package com.atguigu05.map.exer1;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;

/**
 * ClassName: MusicTest
 * Package: com.atguigu05.map.exer1
 * Description:
 *
 * @Author BuTang
 * @Create 2023/6/7 11:12
 * @Version 1.0
 */
public class MusicTest {
    public static void main(String[] args) {
        HashMap hashMap = new HashMap();
        hashMap.put("周杰伦","本草纲目，稻香");

        String singer1 = "程奕迅";
        ArrayList song1  = new ArrayList();
        song1.add("红玫瑰");
        song1.add("十年");
        hashMap.put(singer1,song1);

        Set set =  hashMap.entrySet();
        Iterator iterator = set.iterator();
        while(iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
